package com.virgo.mongo.service.impl;

import com.virgo.mongo.dao.CollectionIdDao;
import com.virgo.mongo.service.CollectionIdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CollectionIdServiceImpl implements CollectionIdService {

	@Autowired
	private CollectionIdDao collectionIdDao;

	/**
	 * 获取数字类型的集合_id
	 * @param collectionName String 集合名称
	 * @return Long
	 */
	@Override
	public Long getCollectionId(String collectionName) {
		return collectionIdDao.getCollectionId(collectionName);
	}
}
